package com.bwda.dsrs.filecenter.domain.form.executionhistory;

import com.bwda.dsrs.base.centerbase.form.BaseQueryForm;
import com.bwda.dsrs.base.util.DateUtil;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;
/**
 * @author Administrator
 */
@Data
@ApiModel(description = "执行历史")
public class ExecutionHistoryQueryForm extends BaseQueryForm {

    @ApiModelProperty(value = "")
    private Integer historyId;

    @ApiModelProperty(value = "列表")
    private List<Integer> historyIdList;

    @ApiModelProperty(value = "策略id")
    private Integer taskId;

    @ApiModelProperty(value = "任务线程ID")
    private Integer threadId;

    @ApiModelProperty(value = "任务运行时长，单位ms")
    private Integer exeDuration;

    @ApiModelProperty(value = "任务执行状态 1:执行中,2:执行完成,3已停止")
    private Integer executionStatus;

    @ApiModelProperty(value = "任务进度，按百分比计算")
    private Integer speedProgress;

    @ApiModelProperty(value = "执行结果 0:成功 1：失败")
    private Integer result;

    @ApiModelProperty(value = "执行结果描述")
    private String resultDesc;

    private Integer executionPolicyId;
    private Integer executionPolicyType;
    private String executionPolicyName;

    @ApiModelProperty(value = "开始时间")
    @DateTimeFormat(pattern = DateUtil.FORMAT)
    private Date beginTime;

    @ApiModelProperty(value = "结束时间")
    @DateTimeFormat(pattern = DateUtil.FORMAT)
    private Date endTime;

}